package nz.co.doherty.gwtpbreadcrumbs.shared.rpc.product;


import nz.co.doherty.gwtpbreadcrumbs.shared.entity.Product;

import com.philbeaudoin.gwtp.dispatch.shared.Action;
import com.philbeaudoin.gwtp.dispatch.shared.ActionImpl;

public class ProductCreateAction implements Action<ProductCreateResult> {
	
	private Product product;
	
	private ProductCreateAction() {}
	
	public ProductCreateAction(Product product) {
		this.product = product;
	}

	public Product getProduct() {
		return this.product;
	}

	@Override
	public String getServiceName() {
		return ActionImpl.DEFAULT_SERVICE_NAME + "ProductCreate";
	}

	@Override
	public boolean isSecured() {
		// TODO Auto-generated method stub
		return false;
	}
}
